package com.lancoo.ccas52.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 教室
 * </p>
 *
 * @author quin.song
 * @since 2023-03-01
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(of={"schoolId","term","roomName"})
@ApiModel(value = "Room对象", description = "教室")
public class Room implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "room_id", type = IdType.AUTO)
    private Long roomId;

    private Integer taskId;

    private Integer baseRoomId;

    private String roomName;

    @ApiModelProperty("教室所属（学院：写入college_id）")
    private String collegeId;

    private String collegeName;

    private Integer buildingFloor;

    private Integer buildingId;

    private String buildingName;

    @ApiModelProperty("教室类型")
    private Integer roomType;
    private Integer baseRoomType;

    @ApiModelProperty("容量（不可为空）")
    private Integer roomNum;

    @ApiModelProperty("所属校区")
    private String campusId;

    private String campusName;

    private String schoolId;

    @ApiModelProperty("学期")
    private String term;

    @ApiModelProperty("同时上课班级数")
    private Integer concurrentClass;

    @ApiModelProperty("是否可用 -1为已删除 0为不可用 1为可用 2为用户创建的教室")
    private Integer isEnable;

    @TableField(exist = false)
    @ApiModelProperty("教室禁排")
    private List<RuleRoomProhibit> ruleRoomProhibitList;

    @TableField(exist = false)
    @ApiModelProperty("1待设置 2已设置")
    private Integer state;
}
